package per.songyu.pj.activity.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import per.songyu.pj.activity.pojo.Activity;
import per.songyu.pj.activity.service.ActivityService;

import java.util.List;

@RestController
public class ActivityController {
    @Autowired
    ActivityService activityService;

    @RequestMapping("/findActivitys")
    public List<Activity> findActivitys(){
        return activityService.findAcitvitys();
    }
}
